package com.wenshi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wenshi.system.domain.ModbusMapping;
import com.wenshi.system.mapper.ModbusMappingMapper;
import com.wenshi.system.service.ModbusMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ModbusMappingServiceImpl extends ServiceImpl<ModbusMappingMapper, ModbusMapping> implements ModbusMappingService {
    @Autowired
    ModbusMappingMapper modbusMappingMapper;
    @Override
    public boolean insertModbusMappingByList(List<ModbusMapping> modbusMappingList) {

        return this.saveBatch(modbusMappingList);
    }
}
